//
// Created by liu on 2023/1/19.
//

#ifndef MULTIBUTTON_HARDWARE_CONFIG_H
#define MULTIBUTTON_HARDWARE_CONFIG_H


#include "main.h"

#include "spi.h"
#include "tim.h"

#include "led.h"
#include "button.h"
#include "oled.h"
#include "bmp280.h"
#include "servo_motor.h"
#include "sht21.h"



void board_led_set_level(uint8_t level);
void user_led_set_level(uint8_t level);


uint32_t left_btn_get_tick();
uint8_t left_btn_get_level();


int oled_spi_write(uint8_t *data, uint16_t len);
void oled_set_res(uint8_t level);
void oled_set_dc(uint8_t level);
void oled_set_cs(uint8_t level);


#endif //MULTIBUTTON_HARDWARE_CONFIG_H
